package com.aco.party.enums;

/**
 * Created by WangShijun on 2016/4/8.
 */
public enum PostsStatusEnum {
    显示("显示"),
    草稿("草稿"),
    隐藏("隐藏"),
    待审核("待审核"),
    审核通过("审核通过"),
    审核不通过("审核不通过"),
    NULL("");

    private String value;

    public String getValue() {
        return value;
    }
    PostsStatusEnum(String value){
        this.value = value;
    }

    public static PostsStatusEnum getPostsEnum(String value){
        for (PostsStatusEnum type : PostsStatusEnum.values()) {
            if(type.value.equals(value))
                return type;
        }
        return NULL;
    }
}
